package com.jar.exercise.clone;

public class CloneMain {
	public static void main(String[] args) throws CloneNotSupportedException {
		Grade grade = new Grade(1, "八年级");
		Student student = new Student("jar", 18, grade);

		Student studentClone = student.clone();
		student.setName("sdfa");
		System.out.println(student.getName());
		System.out.println(grade);

		System.out.println(studentClone.getName());
		System.out.println(studentClone.getGrade());
	}
}
